﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindows.Attributes;

namespace UIWindows.Models.ParameterModels
{
    public class RunParameterModel : INotifyPropertyChanged
    {
        /// <summary>
        /// 窗体名
        /// </summary>
        [UIMark("标题", "", 1)]
        [Description("标题")]
        public string Title { get; set; } = "精朗注液机";
        /// <summary>
        /// 扫码重试次数
        /// </summary>
        [UIMark("扫码重试", "次")]
        [Description("扫码重试")]
        public int Retries_Count_ScanCode { get; set; }

        /// <summary>
        /// 扫码失败间隔时间
        /// </summary>
        [UIMark("扫码间隔", "ms")]
        [Description("扫码间隔")]
        public int IntervalTime_ScanCode { get; set; }

        /// <summary>
        /// 窗口活跃时间
        /// </summary>
        //[UIMark("活跃时间", "分")]
        //[Description("活跃时间")]
        public int ActiveTime { get; set; } = 30;

        /// <summary>
        /// 设备加工参数采集间隔时间
        /// </summary>
        //[UIMark("轮询时间", "s")]
        //[Description("轮询时间")]
        public int IntervalTime { get; set; }
        /// <summary>
        /// 设备状态间隔时间
        /// </summary>

        [UIMark("设备状态间隔时间", "s")]
        [Description("设备状态间隔时间")]
        public int DeviceStatusTime { get; set; } = 10;

        /// <summary>
        /// 点检轮询时间
        /// </summary>

        //[UIMark("点检轮询时间", "s")]
        //[Description("点检轮询时间")]
        public int AutoCheckIntervalTime { get; set; }

        /// <summary>
        /// 点检轮询时间
        /// </summary>

        //[UIMark("待机弹窗时间", "s")]
        //[Description("待机弹窗时间")]
        public int StandbyPopUpWindowTime { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;
        /// <summary>
        /// MES最大连续NG次数
        /// </summary>
        [UIMark("MES连续NG", "次")]
        [Description("MES连续NG")]
        public int NumberConsecutiveNG { get; set; }
    }
}
